/*
 * ============================================================================
 * CART OFFCANVAS - MINIMALIST DESIGN
 * ============================================================================
 * Design Philosophy: Clean, zero border-radius, premium minimal aesthetic
 * Based on modern e-commerce cart design standards
 * ============================================================================
 */

/* @vh-rule: Cart Offcanvas Container */
.cart-offcanvas-minimal {
  background: #ffffff;
  border: none;
  border-left: 1px solid #e0e0e0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
}

/* @vh-rule: Header Section */
.cart-header-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--black);
  box-shadow: none;
}

.cart-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-title-minimal {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--foreground);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 0;
}

.cart-close-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
}

.cart-close-minimal:hover {
  color: var(--white);
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

/* @vh-rule: Body Section */
.cart-body-minimal {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cart-items-minimal {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 0;
}

/* @vh-rule: Empty State */
.cart-empty-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 300px;
}

.empty-icon-minimal {
  font-size: 64px;
  color: #d0d0d0;
  margin-bottom: 20px;
}

.empty-title-minimal {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 8px 0;
}

.empty-text-minimal {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* @vh-rule: Cart Item */
.cart-item-minimal {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-minimal:last-child {
  border-bottom: none;
}

/* @vh-rule: Cart Item Image */
.cart-item-image-minimal {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  background: #f0f0f0;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
}

.cart-item-image-minimal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* @vh-rule: Cart Item Content */
.cart-item-content-minimal {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.cart-item-header-minimal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-title-minimal a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-black);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-remove-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #999999;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.cart-item-remove-minimal:hover {
  color: #ff4444;
}

/* @vh-rule: Cart Item Variant */
.cart-item-variant-minimal {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.4;
}

/* @vh-rule: Cart Item Footer */
.cart-item-footer-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

/* @vh-rule: Quantity Controls */
.cart-item-quantity-minimal {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.qty-btn-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #666666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.qty-btn-minimal:hover {
  background: #e8e8e8;
  color: #000000;
}

.qty-btn-minimal:active {
  background: #d8d8d8;
}

.qty-value-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  background: #ffffff;
}

/* @vh-rule: Cart Item Prices */
.cart-item-prices-minimal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price-minimal {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: 1;
}

.cart-item-price-old-minimal {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  text-decoration: line-through;
  line-height: 1;
}

/* @vh-rule: Footer Section */
.cart-footer-minimal {
  padding: 24px;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
}

/* @vh-rule: Cart Summary */
.cart-summary-minimal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-summary-row-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-label-minimal {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}

.summary-value-minimal {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}

.summary-calculated {
  font-size: 13px;
  font-weight: 400;
  color: #999999;
}

.cart-summary-shipping {
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* @vh-rule: Checkout Button */
.btn-checkout-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 32px;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.btn-checkout-minimal:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-1px);
  -webkit-transform: translateY(-1px);
  -moz-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  -o-transform: translateY(-1px);
  color: var(--white);
}

.btn-checkout-minimal:active:not(:disabled) {
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

.btn-checkout-minimal:disabled {
  background: #e0e0e0;
  color: #999999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* @vh-rule: Scrollbar Styling */
.cart-items-minimal::-webkit-scrollbar {
  width: 6px;
}

.cart-items-minimal::-webkit-scrollbar-track {
  background: #f8f8f8;
}

.cart-items-minimal::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 0;
}

.cart-items-minimal::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* @vh-rule: Responsive Design */
@media (max-width: 576px) {
  .cart-offcanvas-minimal {
    max-width: 100%;
  }

  .cart-header-minimal {
    padding: 16px 20px;
  }

  .cart-title-minimal {
    font-size: 18px;
  }

  .cart-items-minimal {
    padding: 20px;
  }

  .cart-item-minimal {
    gap: 12px;
    padding: 16px 0;
  }

  .cart-item-image-minimal {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .cart-item-title-minimal {
    font-size: 14px;
  }

  .cart-footer-minimal {
    padding: 20px;
  }

  .btn-checkout-minimal {
    height: 48px;
    font-size: 14px;
  }
}

/* @vh-rule: Animation & Transitions */
.cart-item-minimal {
  animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* @vh-rule: Focus States for Accessibility */
.cart-close-minimal:focus,
.cart-item-remove-minimal:focus,
.qty-btn-minimal:focus,
.btn-checkout-minimal:focus {
  outline: 2px solid #0000ff;
  outline-offset: 2px;
}

/* @vh-rule: Loading State */
.cart-item-minimal.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* @vh-rule: Remove Animation */
.cart-item-minimal.removing {
  animation: slideOutCart 0.3s ease forwards;
}

@keyframes slideOutCart {
  to {
    opacity: 0;
    transform: translateX(100%);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

