/* Cart Page - Shopee Style - Mobile First */

/* Cart Page */

/* Cart Header */
.page-cart-wrapper-section .cart-header {
  background: var(--bg-gradient);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(238, 77, 45, 0.3);
}

.cart-body-wrapper .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-body-wrapper .cart-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.cart-body-wrapper .cart-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cart-body-wrapper .item-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.cart-body-wrapper .select-all-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.cart-body-wrapper .select-all-btn:hover,
.cart-body-wrapper .select-all-btn.selected {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cart-body-wrapper .select-all-btn .checkbox-label {
  display: flex;
  align-items: center;
  color: white;
  margin: 0;
  font-size: inherit;
}

.cart-body-wrapper .select-all-btn .select-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Cart Body */
.cart-body-wrapper .cart-body {
  padding: 1.5rem 0;
}

/* Store Group */
.cart-body-wrapper .store-group {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.cart-body-wrapper .store-group:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Store Header */
.cart-body-wrapper .store-header {
  /* background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%); */
  background: var(--bg-gradient);
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-body-wrapper .store-checkbox {
  display: flex;
  align-items: center;
}

.cart-body-wrapper .store-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.cart-body-wrapper .store-icon {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.cart-body-wrapper .store-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

/* Cart Item */
.cart-body-wrapper .cart-item {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

.cart-body-wrapper .cart-item:hover {
  background: #fafafa;
}

.cart-body-wrapper .cart-item:last-child {
  border-bottom: none;
}

/* Smooth fade animations */
.cart-body-wrapper .cart-item.fade-out {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-body-wrapper .cart-item.fade-in {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item Checkbox */
.cart-body-wrapper .item-checkbox {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

/* Custom Checkbox */
.cart-body-wrapper .checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cart-body-wrapper .checkbox-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-body-wrapper .checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  cursor: pointer;
  z-index: -1;
}

.cart-body-wrapper .checkbox-label input[type="checkbox"]:checked + .checkbox {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  border-color: #ee4d2d;
}

.cart-body-wrapper .check-icon {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-body-wrapper
  .checkbox-label
  input[type="checkbox"]:checked
  + .checkbox
  .check-icon {
  opacity: 1;
}

/* Item Image */
.cart-body-wrapper .item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f9fa;
}

.cart-body-wrapper .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Item Details */
.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-variant {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.item-promo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #ee4d2d;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.6rem;
  background: rgba(238, 77, 45, 0.1);
  border-radius: 6px;
  width: fit-content;
}

.item-promo svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

/* Item Price */
.item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-old {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
}

.price-current {
  font-size: 1rem;
  color: #ee4d2d;
  font-weight: 700;
}

.price-discount {
  font-size: 0.75rem;
  color: white;
  background: #ee4d2d;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Item Actions */
.item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Quantity Control */
.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.qty-btn:hover {
  background: #f8f9fa;
  color: #ee4d2d;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-input {
  width: 50px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.qty-input:focus {
  outline: none;
  background: #f8f9fa;
}

/* Remove Button */
.remove-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.remove-btn:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-1px);
}

/* Store Vouchers */
.store-vouchers {
  background: linear-gradient(145deg, #fff5f5 0%, #fff0f0 100%);
  padding: 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.voucher-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.voucher-icon {
  width: 24px;
  height: 24px;
  fill: #ee4d2d;
  flex-shrink: 0;
}

.voucher-text {
  flex: 1;
}

.voucher-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.2rem;
}

.voucher-list {
  font-size: 0.75rem;
  color: #ee4d2d;
}

.voucher-btn {
  background: white;
  border: 1px solid #e0e0e0;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.voucher-btn:hover {
  border-color: #ee4d2d;
  color: #ee4d2d;
}

/* Platform Vouchers */
.platform-vouchers {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(145deg, #fff9f0 0%, #fff5e6 100%);
}

.platform-icon {
  width: 28px;
  height: 28px;
  fill: #ff6533;
  stroke: #ff6533;
  stroke-width: 1;
}

.voucher-desc {
  font-size: 0.75rem;
  color: #666;
}

.voucher-btn.platform {
  background: var(--bg-gradient);
  color: white;
  border: none;
}

.voucher-btn.platform:hover {
  background: linear-gradient(135deg, #ee4d2d 0%, #d63031 100%);
  color: white;
}

/* Shipping Info */
.shipping-info {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  padding: 0;
}

.shipping-header {
  background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.truck-icon {
  width: 28px;
  height: 28px;
  fill: #17a2b8;
  stroke: #17a2b8;
  stroke-width: 1;
}

.shipping-text {
  flex: 1;
}

.shipping-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.2rem;
}

.shipping-desc {
  font-size: 0.8rem;
  color: #666;
}

.shipping-details {
  padding: 1rem;
}

.shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}

.shipping-row span:first-child {
  color: #666;
}

.shipping-row span:last-child {
  color: #333;
  font-weight: 500;
}

/* Empty Cart */
.empty-cart {
  display: none;
  padding: 3rem 0;
  text-align: center;
}

.empty-content {
  padding: 2rem 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  stroke: #ddd;
  stroke-width: 1;
  fill: none;
  margin: 0 auto 1.5rem;
}

.empty-cart h2 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.empty-cart p {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2rem;
}

.continue-btn {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.4);
}

/* Loading */
.cart-loading {
  padding: 3rem 0;
  text-align: center;
}

.loading-content {
  padding: 2rem 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ee4d2d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.spinner.small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-content p {
  color: #666;
  font-size: 1rem;
}

/* Cart Footer */
.page-cart-wrapper-section .cart-footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.page-cart-wrapper-section .footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.select-all {
  display: flex;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.action-btn {
  background: none;
  border: none;
  color: #666;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.action-btn.delete:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.action-btn.favorite:hover {
  color: #ee4d2d;
  background: rgba(238, 77, 45, 0.1);
}

/* Checkout Section */
.checkout-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.total-info {
  flex: 1;
}

.total-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.total-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ee4d2d;
  margin-bottom: 0.1rem;
}

.total-note {
  font-size: 0.75rem;
  color: #999;
}

.checkout-btn {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkout-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.4);
}

.checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-left: 4px solid #28a745;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: #dc3545;
}

.toast-icon {
  width: 20px;
  height: 20px;
  stroke: #28a745;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.toast.error .toast-icon {
  stroke: #dc3545;
}

.toast-message {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-group:nth-child(1) .cart-item {
  animation-delay: 0.1s;
}

.store-group:nth-child(2) .cart-item {
  animation-delay: 0.2s;
}

/* Responsive Design */

/* Tablet */
@media (min-width: 576px) {
 
  .page-cart-wrapper-section .cart-header {
    padding: 1.5rem 0;
  }

  .page-cart-wrapper-section .cart-title {
    font-size: 1.4rem;
  }

  .page-cart-wrapper-section .cart-body {
    padding: 2rem 0;
  }

  .page-cart-wrapper-section .item-image {
    width: 100px;
    height: 100px;
  }

  .page-cart-wrapper-section .item-name {
    font-size: 1rem;
  }

  .page-cart-wrapper-section .item-actions {
    flex-direction: row;
    align-items: center;
  }

  .page-cart-wrapper-section .checkout-section {
    gap: 2rem;
  }

  .page-cart-wrapper-section .checkout-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .cart-page {
    margin: 0 auto;
    padding-bottom: 140px;
  }


  .page-cart-wrapper-section .cart-header {
    position: relative;
    box-shadow: none;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .page-cart-wrapper-section .cart-footer {
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
  }

  .page-cart-wrapper-section .store-header,
  .page-cart-wrapper-section .cart-item,
  .page-cart-wrapper-section .store-vouchers,
  .page-cart-wrapper-section .shipping-header,
  .page-cart-wrapper-section .shipping-details {
    padding: 1.5rem;
  }

  .page-cart-wrapper-section .item-image {
    width: 120px;
    height: 120px;
  }

  .page-cart-wrapper-section .footer-actions {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .item-actions {
    gap: 1rem;
  }
}

/* High DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .store-group,
  .platform-vouchers,
  .shipping-info {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .page-cart-wrapper-section .cart-header,
  .page-cart-wrapper-section .cart-footer,
  .page-cart-wrapper-section .toast {
    display: none !important;
  }

  .cart-page {
    padding-bottom: 0;
  }

  body.gio-hang {
    background: white;
    color: black;
  }
}

/* Mobile First Responsive */
@media (max-width: 575px) {
  

  .page-cart-wrapper-section .cart-header {
    padding: 0.75rem 0;
  }

  .page-cart-wrapper-section .cart-title {
    font-size: 1.1rem;
  }

  .page-cart-wrapper-section .cart-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .select-all-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .store-header {
    padding: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .store-info h3 {
    font-size: 0.9rem;
  }

  .cart-item {
    padding: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
  }

  .item-details {
    flex: 1;
    min-width: 0;
  }

  .item-name {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
  }

  .variant-info {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .item-price {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .quantity-controls {
    gap: 0.3rem;
    order: 1;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .quantity-input {
    width: 40px;
    height: 28px;
    font-size: 0.9rem;
  }

  .item-total {
    order: 2;
    font-size: 1rem;
    font-weight: 600;
    color: #ee4d2d;
  }

  .platform-vouchers,
  .shipping-info {
    padding: 0.75rem;
  }

  .platform-vouchers h4,
  .shipping-info h4 {
    font-size: 0.9rem;
  }

  .voucher-item,
  .shipping-item {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .fixed-footer {
    padding: 1rem;
    gap: 0.75rem;
  }

  .summary-info {
    font-size: 0.85rem;
  }

  .total-amount {
    font-size: 1.1rem;
  }

  .checkout-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .checkout-section {
    flex-direction: row;
    gap: 1rem;
  }

  .summary-section {
    text-align: center;
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .qty-btn,
  .remove-btn,
  .voucher-btn,
  .action-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .checkbox {
    min-width: 24px;
    min-height: 24px;
  }
}

.gio-hang header {
  position: relative;
}
.page-cart-wrapper-section .cart-body {
  background: var(--white);
  max-height: inherit;
  overflow: hidden;
}
.store-header {
  background: var(--primary-color);
  color: var(--white);
}
.store-group {
  padding-top: 0;
  padding-bottom: 0;
}
.store-name {
  color: var(--white);
}
.cart-page {
  padding-bottom: 30px;
}
.wrapper.wrapper-detail {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.page-cart-wrapper-section .cart-footer {
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: relative;
}
@media (max-width: 768px) {
  .price-old {
    font-size: 0.7rem;
  }
  .price-current {
    font-size: 0.8rem;
  }
  .price-discount {
    font-size: 0.7rem;
    padding: 5px 7px;
  }
  .item-promo {
    font-size: 0.65rem;
    color: #ee4d2d;
    margin-bottom: 7px;
    padding: 5px;
  }
  .item-promo svg {
    width: 10px;
    height: 10px;
    transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
  }
  .page-cart-wrapper-section .cart-footer {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .cart-page {
    padding-bottom: 10px;
  }
}

/* ==================== VOUCHER MODAL - BOOTSTRAP 5 SHOPEE STYLE ==================== */

/* Voucher Modal Overlay */
.voucher-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.voucher-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease-out;
}

/* Modal Content */
.voucher-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.voucher-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Modal Header */
.voucher-modal-header {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voucher-modal-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voucher-modal-header h5::before {
  content: "🎫";
  font-size: 1.2rem;
}

.voucher-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.voucher-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body */
.voucher-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  max-height: 400px;
}

.voucher-modal-body::-webkit-scrollbar {
  width: 6px;
}

.voucher-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.voucher-modal-body::-webkit-scrollbar-thumb {
  background: #ee4d2d;
  border-radius: 3px;
}

/* Voucher Row */
.voucher-row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.voucher-row:last-child {
  border-bottom: none;
}

.voucher-row:hover {
  background: linear-gradient(
    90deg,
    rgba(238, 77, 45, 0.05) 0%,
    rgba(255, 101, 51, 0.05) 100%
  );
}

.voucher-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voucher-row:hover::before {
  opacity: 1;
}

/* Voucher Disabled State */
.voucher-row.voucher-disabled {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.voucher-row.voucher-disabled:hover {
  background: rgba(0, 0, 0, 0.02);
}

.voucher-row.voucher-disabled::before {
  background: #ccc;
  opacity: 0.3;
}

.voucher-row.voucher-disabled .voucher-name {
  color: #999;
}

.voucher-row.voucher-disabled .voucher-meta {
  color: #bbb;
}

/* Voucher Applied State */
.voucher-row.voucher-applied {
  background: linear-gradient(
    90deg,
    rgba(40, 167, 69, 0.1) 0%,
    rgba(32, 201, 151, 0.1) 100%
  );
  border-left: 4px solid #28a745;
}

.voucher-row.voucher-applied::before {
  background: #28a745;
  opacity: 1;
}

/* Voucher Main Info */
.voucher-main {
  flex: 1;
  min-width: 0;
}

.voucher-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voucher-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voucher-meta::before {
  content: "💰";
  font-size: 0.9rem;
}

.voucher-condition {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.voucher-note {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  display: inline-block;
  margin-top: 0.3rem;
}

/* Voucher Actions */
.voucher-actions {
  flex-shrink: 0;
}

.btn-apply-voucher {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

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

.btn-apply-voucher:hover::before {
  left: 100%;
}

.btn-apply-voucher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4);
}

.btn-apply-voucher:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
}

.btn-apply-voucher:disabled::before {
  display: none;
}

.btn-remove-voucher {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.btn-remove-voucher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Modal Footer */
.voucher-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  display: flex;
  justify-content: center;
}

.btn-cancel-voucher {
  background: white;
  border: 2px solid #e0e0e0;
  color: #666;
  padding: 0.7rem 2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-cancel-voucher:hover {
  border-color: #ee4d2d;
  color: #ee4d2d;
  transform: translateY(-1px);
}

/* Applied Voucher Badge */
.applied-voucher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.badge-voucher {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-voucher::before {
  content: "✓";
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .store-vouchers {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .voucher-modal {
    padding: 0.5rem;
  }

  .voucher-modal-content {
    max-height: 85vh;
    border-radius: 12px;
  }

  .voucher-modal-header {
    padding: 1rem;
  }

  .voucher-modal-header h5 {
    font-size: 1rem;
  }

  .voucher-row {
    padding: 0.75rem 1rem;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }

  .voucher-name {
    font-size: 0.9rem;
  }

  .voucher-meta {
    font-size: 0.75rem;
  }

  .btn-apply-voucher,
  .btn-remove-voucher {
    width: 100%;
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .voucher-modal-footer {
    padding: 0.75rem 1rem;
  }
  body {
    padding-bottom: 66px;
  }
  .hydrosite-shopee-services-section, .hydrosite-shopee-footer {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .voucher-modal-backdrop {
    animation: none;
  }

  .voucher-modal-content {
    animation: none;
  }

  .voucher-modal-close {
    transition: none;
  }

  .voucher-modal-close:hover {
    transform: none;
  }

  .btn-apply-voucher::before {
    display: none;
  }
}


