/* Cart Page Styles */
.cart-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px 0;
}

.cart-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.cart-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 20px;
}

.cart-support {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 30px;
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 30px;
  align-items: start;
  max-width: 100%;
}

/* Cart Items Section */
.cart-items {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-checkbox {
  margin: auto;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 50px minmax(150px, 1fr) 120px 120px 120px 50px;
  padding: 20px 25px;
  background: #f0f9ff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px minmax(150px, 1fr) 120px 120px 120px 50px;
  padding: 25px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  align-items: center;
}

.cart-name-product {
  text-align: left;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-checkbox {
  cursor: pointer;
  accent-color: #1976d2;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-logo svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.cart-item-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
  text-align: left;
}

.cart-item-details p {
  font-size: 10px;
  color: #6b7280;
  text-align: left;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-quantity-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #999;
  border-radius: 5px;
  background: white;
}

.quantity-btn {
  padding: 0 5px;
  border: none;
  color: #374151;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #f3f4f6;
  color: #1976d2;
}

.quantity-btn:active {
  background: #e5e7eb;
}

.quantity-input {
  width: 50px;
  height: 100%;
  text-align: center;
  border: none;
  font-weight: 600;
  color: #1f2937;
  outline: none;
  background: white;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
  -moz-appearance: textfield;
}

/* Chrome, Safari, Edge */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-price {
  text-align: center;
}

.original-price {
  color: #6b7280;
}

.discount-badge-cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.discount-badge-cart img {
  width: 12px;
}

.cart-total-price {
  text-align: center;
}

.total-amount {
  font-weight: 700;
  color: #1976d2;
}

.total-discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.total-discount img {
  width: 12px;
}

.cart-delete-btn {
  margin: auto;
}

.delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #dc2626;
  color: white;
}

.cart-footer {
  padding: 20px 25px;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-footer-text {
  font-weight: 600;
  color: #1f2937;
}

.cart-footer-count {
  color: #1976d2;
}

/* Cart Summary Section */
.cart-summary {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.discount-section {
  margin-bottom: 25px;
}

.discount-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
  display: block;
}

.discount-input-wrapper {
  position: relative;
  display: flex;
  gap: 0;
}

.discount-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.discount-input:focus {
  border-color: #1976d2;
}

.discount-btn {
  padding: 12px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.discount-btn:hover {
  background: #4b5563;
}

@keyframes tooltipFloat {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.95rem;
}

.summary-label {
  color: #4b5563;
}

.summary-value {
  font-weight: 600;
  color: #1f2937;
}

.summary-discount {
  font-size: 0.85rem;
  color: #9ca3af;
}

.discount-amount {
  color: #dc2626;
  font-weight: 600;
}

.discount-percent {
  color: #9ca3af;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: end;
}

.summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 15px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1rem;
}

.summary-total .summary-label {
  font-weight: 700;
  color: #1f2937;
}

.total-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1976d2;
}

.total-discount-info {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: right;
}

.email-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
}

.email-label {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
  display: block;
}

.email-label .required {
  color: #dc2626;
}

.email-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.email-input:focus {
  border-color: #1976d2;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.checkout-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.checkout-btn::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -7px;
  width: 70px;
  height: 50px;
  background-image: url(https://tradeproxy.vn/images/img/voucher.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(-7deg);
}

.checkout-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-notification {
  font-weight: 500;
  font-size: 14px;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #9ca3af;
  margin-bottom: 25px;
}

.shop-now-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #1976d2;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.shop-now-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Payment Method Modal */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.payment-modal.active {
  display: flex;
}

.payment-modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-modal-header {
  padding: 25px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.payment-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  color: #6b7280;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-modal-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.payment-modal-body {
  padding: 25px;
}

.payment-methods {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:hover {
  border-color: #1976d2;
  background: #f0f9ff;
}

.payment-method.selected {
  border-color: #1976d2;
  background: #eff6ff;
}

.payment-method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.payment-method-icon-bank {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.payment-method-icon-crypto {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.payment-method-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.payment-balance {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.payment-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.95rem;
}

.payment-warning i {
  font-size: 1.2rem;
}

.payment-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-topup-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 2px solid #1976d2;
  color: #1976d2;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-size: 1rem;
}

.payment-topup-btn:hover {
  background: #eff6ff;
}

.payment-actions {
  display: flex;
  gap: 10px;
}

.payment-cancel-btn,
.payment-confirm-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-cancel-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.payment-cancel-btn:hover {
  background: #e5e7eb;
}

.payment-confirm-btn {
  background: #6b7280;
  color: white;
  text-align: center;
}

.payment-confirm-btn:hover {
  background: #4b5563;
}

.payment-confirm-btn.active {
  background: #1976d2;
}

.payment-confirm-btn.active:hover {
  background: #1d4ed8;
}

/* Responsive Design */
@media (min-width: 2560px) {
}

@media (min-width: 3840px) {
}

@media (max-width: 1024px) {
  .cart-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-summary {
    position: static;
  }

  .discount-tooltip {
    display: none;
  }

  .discount-input {
    width: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-table-header {
    display: none;
  }

  .cart-items {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .cart-item {
    display: block;
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .cart-item:last-child {
    margin-bottom: 0;
  }

  /* Checkbox and Item Info Row */
  .cart-item > div:first-child {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .cart-item-logo {
    width: 60px;
    height: 60px;
  }

  .cart-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cart-item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .cart-item-details p {
    font-size: 0.9rem;
  }

  /* Quantity Section */
  .cart-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }

  .cart-quantity::before {
    content: "Số lượng:";
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
  }

  .quantity-input {
    width: 50px;
  }

  /* Price Section */
  .cart-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    text-align: left;
  }

  .cart-price::before {
    content: "Giá:";
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
  }

  .cart-price > div {
    text-align: right;
  }

  /* Total Price Section */
  .cart-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-bottom: 15px;
  }

  .cart-total-price::before {
    content: "Thành tiền:";
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
  }

  .cart-total-price > div {
    text-align: right;
  }

  /* Delete Button */
  .cart-item > div:last-child {
    bottom: 15px;
    right: 15px;
  }

  .delete-btn {
    width: 100%;
    height: 40px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
  }

  .delete-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
  }

  /* Cart Footer */
  .cart-footer {
    background: white;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .discount-input {
    border-radius: 8px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cart-title {
    font-size: 1.5rem;
  }

  .discount-input-wrapper {
    flex-direction: column;
  }

  .discount-input {
    border-radius: 8px;
  }

  .discount-btn {
    border-radius: 8px;
    margin-top: 8px;
  }
}

/* ========================================
   ẨN WOOCOMMERCE DEFAULT - QUAN TRỌNG!
   ======================================== */
.woocommerce-info,
.woocommerce .woocommerce-info,
.woocommerce-cart .woocommerce-info,
.cart-empty,
.return-to-shop {
  display: none !important;
}

/* ========================================
   EMPTY CART STYLING - Hiện đại & Đẹp
   ======================================== */

.empty-cart-container {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #6787cd 100%);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}
/* Background decorative elements */
.empty-cart-container::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  border-radius: 50%;
  pointer-events: none;
}

.empty-cart-container::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  pointer-events: none;
}

/* Icon giỏ hàng */
.empty-cart-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 35px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: floatCart 3s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.empty-cart-icon::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.4);
  animation: rotate 20s linear infinite;
}

.empty-cart-icon i {
  font-size: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tiêu đề */
.empty-cart-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mô tả */
.empty-cart-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 45px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Nút hành động */
.empty-cart-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.empty-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.empty-cart-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.empty-cart-btn:hover::before {
  transform: translateX(100%);
}

.empty-cart-btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.empty-cart-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.empty-cart-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.empty-cart-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.02);
  border-color: white;
}

/* Animations */
@keyframes floatCart {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .empty-cart-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
  }

  .empty-cart-icon i {
    font-size: 56px;
  }

  .empty-cart-title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .empty-cart-description {
    font-size: 16px;
    margin-bottom: 35px;
  }

  .empty-cart-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .empty-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 28px;
    font-size: 16px;
  }

  .suggestions-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .suggestion-tag {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .empty-cart-icon {
    width: 100px;
    height: 100px;
  }

  .empty-cart-icon i {
    font-size: 48px;
  }

  .empty-cart-title {
    font-size: 24px;
  }

  .empty-cart-description {
    font-size: 15px;
  }

  .suggestion-tag {
    font-size: 13px;
    padding: 8px 16px;
  }
}
