/* ==========================================================================
   CART PAGE
   ========================================================================== */
.ep-cart-shell {
  max-width: 1120px;
  margin: 8px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ep-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ep-cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  color: var(--ep-text);
  cursor: pointer;
  text-decoration: none;
}

.ep-btn--primary {
  background: var(--ep-gradient-primary);
  color: #fff;
  border: none;
}

.ep-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  align-items: flex-start;
  background: #fff;
}

.ep-cart-item__media img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--ep-surface);
}

.ep-cart-item__body {
  flex: 1;
}

.ep-cart-item__title {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.ep-cart-item__title a {
  color: var(--ep-text);
  text-decoration: none;
}

.ep-cart-item__title a:hover {
  text-decoration: underline;
  color: var(--ep-primary);
}

.ep-cart-item__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ep-text-soft);
}

.ep-cart-item__mpn {
  font-weight: 600;
  color: var(--ep-text);
}

.ep-cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ep-qty-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ep-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  overflow: hidden;
}

.ep-qty-btn {
  background: #fff;
  border: none;
  color: var(--ep-text);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.ep-qty-btn:hover {
  background: var(--ep-primary-soft);
  color: var(--ep-primary);
}

.ep-qty-btn:active {
  background: var(--ep-primary);
  color: #fff;
  transform: scale(0.95);
}

.ep-qty-btn--minus {
  border-right: 1px solid var(--ep-border);
}

.ep-qty-btn--plus {
  border-left: 1px solid var(--ep-border);
}

.ep-qty-input {
  width: 50px;
  padding: 6px 4px;
  border: none;
  text-align: center;
  font-weight: 600;
  outline: none;
}

.ep-qty-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ep-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.ep-qty-input::-webkit-inner-spin-button,
.ep-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ep-qty-input[type=number] {
  -moz-appearance: textfield; 
}

.ep-cart-item__price {
  text-align: right;
}

.ep-price {
  font-weight: 700;
}

.ep-price-total {
  font-size: 0.95rem;
  color: var(--ep-text-soft);
}

.ep-delivery {
  font-size: 0.8rem;
  color: var(--ep-text-soft);
}

.ep-remove-form {
  margin-top: 8px;
}

.ep-link-danger {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .2s ease;
}

.ep-link-danger:hover {
  background: #fdd;
  border-color: #fbb;
  color: #a00;
}

.ep-link-danger:active {
  background: #fcc;
  transform: scale(0.98);
}

.ep-cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 12px;
  flex-wrap: wrap;
}

.ep-cart-summary__label {
  font-weight: 700;
  color: var(--ep-text-soft);
  white-space: nowrap;
}

.ep-cart-summary__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ep-primary);
  white-space: nowrap;
}

.ep-empty-state {
  padding: 24px;
  border: 1px dashed var(--ep-border);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

/* ==========================================================================
   CART MEDIA & BRAND LOGOS
   ========================================================================== */

/* Cart Item Media Container */
.ep-cart-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

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

/* Brand Logo Fallback Styling */
.ep-cart-media__brand {
  width: 84px;
  height: 84px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-cart-media__brand img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.85;
}

