/* AudioKing Right-Side Cart Drawer */
.ak-cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 18, 31, 0.48);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ak-cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.ak-cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background-color: #FFFFFF;
  box-shadow: var(--ak-shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-cart-backdrop.open .ak-cart-drawer {
  transform: translateX(0);
}

.ak-cart-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ak-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ak-cart-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ak-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ak-cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #F1F5F9;
  color: var(--ak-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ak-transition-fast);
}

.ak-cart-close:hover {
  background-color: var(--ak-orange-light);
  color: var(--ak-orange);
}

/* CART ITEMS LIST */
.ak-cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}

.ak-cart-empty {
  text-align: center;
  padding: 50px 16px;
  color: var(--ak-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ak-cart-empty-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #FFF7ED;
  border: 1.5px solid #FFEDD5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--ak-orange, #EA580C);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
  flex-shrink: 0;
  overflow: visible;
}

.ak-cart-empty-svg {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.ak-cart-empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--ak-orange, #EA580C);
  overflow: visible;
}

.ak-cart-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
}

.ak-cart-empty-sub {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 0 16px;
}

.ak-cart-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ak-orange, #EA580C);
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-cart-empty-btn:hover {
  background-color: #C2410C;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38);
  color: #FFFFFF !important;
}

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

.ak-cart-empty-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ak-cart-empty-btn:hover svg {
  transform: translateX(3px);
}

.ak-cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ak-border-light);
}

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

.ak-cart-item-img {
  width: 78px;
  height: 78px;
  background-color: #FAFBFC;
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.ak-cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ak-cart-item-body,
.ak-cart-item-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ak-cart-item-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ak-orange, #EA580C);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ak-cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ak-text-primary, #0F172A);
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ak-cart-item-price {
  font-family: var(--ak-font-price, inherit);
  font-size: 15px;
  font-weight: 700;
  color: var(--ak-navy, #0B2545);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ak-cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* Stepper [-] qty [+] */
.ak-qty-stepper,
.ak-cart-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  overflow: hidden;
  background-color: #FFFFFF;
  height: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ak-qty-btn,
.ak-stepper-btn {
  width: 32px;
  height: 100%;
  border: none;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  padding: 0;
  line-height: 1;
}

.ak-qty-btn:hover,
.ak-stepper-btn:hover {
  background-color: #EA580C;
  color: #FFFFFF;
}

.ak-qty-btn:active,
.ak-stepper-btn:active {
  background-color: #C2410C;
  color: #FFFFFF;
}

.ak-qty-val,
.ak-stepper-val {
  min-width: 34px;
  padding: 0 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #FFFFFF;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
}

.ak-cart-item-remove {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #EF4444;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ak-cart-item-remove:hover {
  background-color: #FEE2E2;
  color: #DC2626;
}

/* CART FOOTER */
.ak-cart-footer {
  padding: 18px 24px;
  background-color: #FAFBFC;
  border-top: 1px solid var(--ak-border);
}

.ak-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ak-text-secondary);
  margin-bottom: 8px;
}

.ak-summary-row.total {
  border-top: 1px solid var(--ak-border);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ak-navy);
}

.ak-summary-row.total span:last-child {
  font-family: var(--ak-font-price);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.ak-checkout-btn {
  width: 100%;
  height: 46px;
  background-color: var(--ak-orange);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--ak-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  transition: background-color var(--ak-transition-fast), transform var(--ak-transition-fast);
}

.ak-checkout-btn:hover {
  background-color: var(--ak-orange-hover);
  transform: translateY(-1px);
}
