/* ============================================================
   SellerCard — name, rating, sales, shipping speed, visit-store CTA.
   On desktop this whole column (seller info + trust row + big Add
   to Cart button) is sticky while scrolling, per Noon's layout.
   ============================================================ */

.pdp-seller-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--pdp-surface);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 14px 16px;
  box-shadow: var(--pdp-shadow-sm);
}

.pdp-seller-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4ff, #dbe8ff);
  color: var(--pdp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pdp-seller-avatar .material-icons-outlined { font-size: 20px; }

.pdp-seller-meta { min-width: 0; }

.pdp-seller-sold-by { font-size: 0.72rem; color: var(--pdp-muted); }

.pdp-seller-name {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--pdp-ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pdp-seller-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-seller-name .material-icons-outlined { font-size: 15px; color: var(--pdp-blue); flex: none; }
.pdp-seller-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pdp-blue), #1557b0);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex: none;
}

.pdp-seller-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-seller-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--pdp-muted);
}
.pdp-seller-stat-row strong { color: var(--pdp-ink); font-weight: 800; }
.pdp-seller-stat-bar {
  flex: 1; max-width: 100px; height: 6px;
  background: #e9ecef; border-radius: 3px; overflow: hidden;
}
.pdp-seller-stat-fill { height: 100%; background: var(--pdp-stock-ok); border-radius: 3px; }
.pdp-seller-stat-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--pdp-stock-ok);
  font-weight: 800;
}
.pdp-seller-stat-rating .material-icons-outlined { font-size: 14px; }

.pdp-seller-visit-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pdp-border);
  background: #fff;
  color: var(--pdp-blue);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--pdp-fade-fast) ease;
}
.pdp-seller-visit-btn:hover { background: #f4f8ff; }

.pdp-seller-divider { height: 1px; background: var(--pdp-border); border: 0; margin: 0; }

/* ---------- Desktop Add to Cart (lives inside the seller column) ---------- */
.pdp-desktop-cta { display: none; }

@media (min-width: 1200px) {
  .pdp-seller-region { position: sticky; top: 14px; align-self: start; }

  .pdp-desktop-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pdp-desktop-cta-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    padding: 6px 10px;
  }
  .pdp-desktop-cta-qty span { font-size: 0.8rem; font-weight: 800; color: var(--pdp-muted); }
  .pdp-qty-control { display: flex; align-items: center; gap: 10px; }
  .pdp-qty-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--pdp-border); background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 900; color: var(--pdp-ink);
  }
  .pdp-qty-value { font-weight: 900; min-width: 18px; text-align: center; }

  .pdp-add-cart-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--pdp-blue) 0%, var(--pdp-blue-strong) 100%);
    color: #fff;
    font-weight: 900;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.25);
    transition: transform 140ms ease, box-shadow 140ms ease;
  }
  .pdp-add-cart-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(31, 111, 235, 0.3); }
  .pdp-add-cart-btn:active { transform: translateY(0); }
  .pdp-add-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

  .pdp-wish-btn-desktop {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--pdp-border);
    background: #fff;
    color: #334155;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }
  .pdp-wish-btn-desktop.is-active { color: #e3245c; border-color: #f7c9d6; background: #fff5f8; }
}
